#ifndef _FTP_H
#define _FTP_H
typedef enum cmd
{
	LOGIN = 1,
	QUIT,
	CD,
	LS,
	PWD,
	GET,
	PUT,
	MKDIR,
	TOUCH,
	END
}CMD;
struct ftp_login
{
	char login_user[50];
	char login_passwd[50];
};
union ftp_cmd_arg
{
	struct ftp_login login;	
	char cmd_pathname[100];
};
struct ftp_info
{
	enum cmd ftp_cmd;
	union ftp_cmd_arg cmd_arg;
	pid_t cli_pid;
		
};

struct rec_to_manage
{
	struct ftp_info info;
	struct sockaddr_in addr;
};
struct login_data
{
	struct rec_to_manage rec_info;
	char pid_fifo[20];
	//struct sockaddr_in addr;
	//pid_t cli_pid;
};
/*
struct manage_to_execute
{
	//struct rec_to_manage rec_info_to_manage;
	struct login_data memory;
	int flag;  //login or not,login info save in login_data-->memory
}
*/
struct execute_result
{
	int flag;
	char execute_data[256];
};
#endif
